package com.sky.mapper;

import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderAdminMapper {
    //todo 有个时间bug
    List<Orders> selectConditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    List<OrderDetail> selectOrderDetailByOrderId(Orders orders);

    Orders selectOrderByOrderId(Long id);

   List<Map<String,Object>> selectStatistics();


    void confirm(Orders orders);

    List<Map<String, Object>> selectturnoverStatistics(LocalDate begin, LocalDate end);
}
